<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/case/case-fieldset-template.xhtml">

	<ui:param name="compViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{compViewBean.id}" />
	<ui:param name="compTitle" value="接警登记" />
	<ui:param name="heanderTitle" value="案件信息" />
	<ui:param name="compToggleable" value="true" />

	<ui:define name="compButtons">
		<div style="float: right;"><p:commandButton
			onstart="btnAction('#{commonContentViewBean.id}','查看内容','600','500','icons/cog_add.png','view','publish-scene','content-view');"
			title="查看内容" image="ui-icon-disk" value="查看">
		</p:commandButton> <p:commandButton
			onstart="btnAction('#{commonContentViewBean.id}','新建内容','700','550','icons/cog_add.png','add','publish-scene','content-add');"
			title="新建内容" image="ui-icon-disk" value="新建">
		</p:commandButton> <p:commandButton
			onstart="btnAction('#{commonContentViewBean.id}','编辑内容','700','700','icons/cog_edit.png','edit','publish-scene','content-edit');"
			title="编辑内容" image="ui-icon-disk" value="编辑">
		</p:commandButton></div>
	</ui:define>


	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
			<ui:decorate
				template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="reportime" />
				<ui:param name="compBean2Id" value="reportmode" />
				<ui:param name="compBean1Lable" value="接警时间" />
				<ui:param name="compBean2Lable" value="报警形式" />
				<ui:define name="compBean1Content">
					<p:calendar id="#{compId}_reportime" pattern="MM/dd/yyyy HH:mm:ss" value="#{compViewBean.reportime}" />
				</ui:define>
				<ui:define name="compBean2Content">
					<h:inputText id="#{compId}_reportmode" value="1111" required="true" />
				</ui:define>
			</ui:decorate>

			<ui:decorate
				template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="receiveunit" />
				<ui:param name="compBean1Lable" value="接报单位" />
				<ui:define name="compBean1Content">
					<h:inputText id="#{compId}_receiveunit" value="111111" required="true" />
				</ui:define>
			</ui:decorate>

			<ui:decorate
				template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="receivepsn" />
				<ui:param name="compBean1Lable" value="接 警 人" />
				<ui:define name="compBean1Content">
					<h:inputText id="#{compId}_receivepsn" value="111111" required="true" />
				</ui:define>
			</ui:decorate>

			<ui:decorate
				template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="casename" />
				<ui:param name="compBean1Lable" value="案事件名称" />
				<ui:define name="compBean1Content">
					<h:inputText id="#{compId}_casename" value="111111" required="true" />
				</ui:define>
			</ui:decorate>

			<ui:decorate
				template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="reportdetails" />
				<ui:param name="compBean1Lable" value="报案人陈述简要情况" />
				<ui:define name="compBean1Content">
					<p:inputTextarea style="width:300px;height:100px;"
						id="#{compId}_reportdetails" effectDuration="400"
						value="#{pageViewBean.reportdetails}" />
				</ui:define>
			</ui:decorate>

		</ui:decorate>
	</ui:define>
</ui:composition>